<template>
    <div>
        <el-menu
                :default-active="activeIndex2"
                class="el-menu-demo"
                mode="horizontal"
                background-color="#545c64"
                text-color="#fff"
                active-text-color="#ffd04b"
                @select="ToLink"
        >
            <el-menu-item index="Lists" name="Lists">首页</el-menu-item>
            <!-- <el-menu-item index="User" name="User">会员中心</el-menu-item> -->
            <el-menu-item index="Login" name="Login" style="float: right;">登录</el-menu-item>
        </el-menu>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                activeIndex: '1',
                activeIndex2: '1'
            };
        },
        methods: {
            ToLink(key) {
                this.$router.push({name: key})
            },
        }
    }
</script>